package Day2025_01_13;

import java.io.FileWriter;
import java.io.IOException;

public class Demo_05_FileWriter {
    public static void main(String[] args) throws IOException {
        FileWriter fileWriter = new FileWriter("E:/temp/java114/abc.txt");
        fileWriter.write("hello world!!!");
        fileWriter.write("\n");
        fileWriter.write('\n');
        fileWriter.write("你好世界!!!");
        fileWriter.flush();
        fileWriter.close();
    }
}
